package com.company.biz.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.company.biz.user.mapper.AreaDao;
import com.company.biz.user.service.AreaService;
import com.company.user.entity.AreaEntity;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AreaServiceImpl extends ServiceImpl<AreaDao, AreaEntity> implements AreaService {

    @Override
    public List<AreaEntity> getChildrenAreaListByAreaId(String areaId) {
        List<AreaEntity> list = list(new QueryWrapper<AreaEntity>().lambda().eq(AreaEntity::getAreaFid, areaId));
        return list;

    }

}
